LP.sr(B,"history","label","History");LP.sr(B,"showdeleted","label","Show Deleted Sites");LP.sr(B,"changepassword","label","Change Password");LP.sr(B,"forums","label","Forums");LP.sr(B,"blog","label","Blog");LP.sr(B,"logofflink","value","Logoff");LP.sr(B,"sethomepage","label","Make this my home page!");
LP.sr(B,"searchBtn","label","Search");LP.sr(B,"clearBtn","label","Clear");LP.sr(B,"nositeslabel","value","NoSites");LP.sr(B,"browsenormallylabel","value","BrowseNormally");LP.sr(B,"watchvideolabel","value","Watch a video on basic usage");LP.sr(B,"expandall","value","Expand All");LP.sr(B,"collapseall","value","Collapse All");
var B=C.selectedIndex>=0?C.value:-1;var A=LP.GetIdentity(false);if(B!=A){LP.updateVaultSelectedIdentity(document,false)}if(!D){setTimeout("syncVaultIdentity()",1000)}}}function window_load_loggedin(){tree=getel("tree");tree.setAttribute("hidden",false);getel("expandcollapse").setAttribute("hidden",false);
}function fix_nosites(){if(LP.numsites()){getel("nosites").setAttribute("hidden",true)}else{if(LP.GetIdentity(false)!=""){LP.sr(document,"nositeslabel","value","You do not yet have any sites setup for your currently selected identity!");LP.sr(document,"browsenormallylabel","value","Please change your identity back to 'All' to view a complete listing of your sites.");
LP.sr(document,"watchvideolabel","value","")}else{LP.sr(document,"nositeslabel","value","NoSites");LP.sr(document,"browsenormallylabel","value","BrowseNormally");LP.sr(document,"watchvideolabel","value","Watch a video on basic usage")}getel("nosites").setAttribute("hidden",false)}}function update_identity_popup(E){if(getel("identitypopup")){var D=getel("identitypopup");
var C=document.createElement("menuitem");for(var A in F[B]){C.setAttribute(A,F[B][A])}D.appendChild(C)}syncVaultIdentity(E)}clear_click()}function window_load_loggedoff(){tree=getel("tree");tree.setAttribute("hidden",true);getel("expandcollapse").setAttribute("hidden",true);if(getel("nosites")){getel("nosites").setAttribute("hidden",true)
V<tdoc.selected_ids.length;V++){if(""==Q){Q=tdoc.selected_ids[V]}S+=tdoc.selected_ids[V]+",";L++}}else{var R=X.getAttribute("id");Q=R;S=R;L++}var C=document.createElement("menuitem");C.setAttribute("oncommand","OpenMoveGroupDlg()");C.setAttribute("label",(tdoc.selected_ids.length>1?LP.lpgs("Move Selected to Group"):LP.lpgs("Move to Group")));
var A=document.createElement("menuitem");A.setAttribute("oncommand","LP.lpOpenShareWindow('"+S+"');");A.setAttribute("label",(tdoc.selected_ids.length>1?LP.lpgs("Share Selected"):LP.lpgs("Share")));var c=document.createElement("menuitem");c.setAttribute("oncommand","ConfirmMultipleDelete()");c.setAttribute("label",(tdoc.selected_ids.length>1?LP.lpgs("Delete Selected"):LP.lpgs("Delete")));
var a=document.createElement("menuitem");a.setAttribute("oncommand","OpenEdit('"+Q+"')");a.setAttribute("label",LP.lpgs("Edit"));D.appendChild(a);if(tdoc.selected_ids.length==1){var Z=document.createElement("menuitem");Z.setAttribute("oncommand","LP.lpCopyUsername('"+Q+"')");Z.setAttribute("label",LP.lpgs("Copy Username"));
var G=document.createElement("menuitem");G.setAttribute("oncommand","LP.lpCopyPassword('"+Q+"')");G.setAttribute("label",LP.lpgs("Copy Password"));D.appendChild(Z);D.appendChild(G)}D.appendChild(C);D.appendChild(A);D.appendChild(c);D.appendChild(a);var E=document.createElement("menuitem");E.setAttribute("oncommand","LP.GotoURL('"+Q+"')");
E.setAttribute("label",LP.lpgs("Go to URL"));D.appendChild(E)}else{var O=X.getAttribute("orig_group");if(O!=LP.lpgs("favorites")&&O!=LP.lpgs("recently used")){var C=document.createElement("menuitem");C.setAttribute("oncommand","LP.openChangeGroupDlg('"+LP.lpes(O)+"');");C.setAttribute("label",LP.lpgs("Rename Group"));
var X=P.view.getItemAtIndex(N.value);var U=P.view.getImageSrc(N.value,K.value);var R=X.getAttribute("id");if(!R){return}if(LP.lpgs("Share")==I){LP.lpOpenShareWindow(R)}else{if(LP.lpgs("Delete")==I){LP.lpConfirmDeleteSite(R)}else{if(LP.lpgs("Edit")==I){LP.lpOpenEditWindow(R,0,0,window)}else{if(LP.lpgs("Reject")==I){LP.lpOpenRejectShareWindow(R)